require.config({
    paths: {
        'jquery': ['http://cdn.bootcss.com/jquery/2.2.4/jquery.min', '/js/lib/jquery.min'],
        'doT': '/js/lib/doT.min',
        'bootstrap': '/js/lib/bootstrap.min',
        'datetimepicker': '/js/lib/bootstrap-datetimepicker.min',
        'select2': '/js/lib/select2.min'
    },
    shim: {
        'bootstrap': ['jquery']
    }
});

require(['jquery', 'doT', 'common', 'bootstrap'], function($, doT, common) {
    $(function() {
        function refreshShopList() {
            var shopTmpl = doT.template($('#shopTmpl').text());
            var shops = [{ district: '广东广州', school: '华南师范大学大学城校区', id: 1 }, { district: '广东佛山', school: '广东财经大学三水校区', id: 2 }];
            $('#shopList').append(shopTmpl(shops));
        }

        refreshShopList();

        function getShopDetail(id) {

            return false;
        }
    });
});
